<?php echo View::factory('admin/model/model_left')->render(); ?>
<script type="text/javascript" src="/media/js/my_validation.js"></script>
<script charset="utf-8" src="/media/js/editor/kindeditor.js"></script>
<script>
      /****************编辑器 加载开始******************/
    var editor;
    KindEditor.ready(function(K) {
        editor = K.create('#chr_context');
    });
    /****************编辑器 加载结束******************/
    $(document).ready(function() {
  
    });
</script>
<div id="do_right" class="catalog_right">
    <div class="box" style="overflow:hidden;">
        <h3 id="h3_left">添加单页</h3>
        <div id="right_button"><a href="/admin/singlepage/list"><button id="back">返回单页列表</button></a></div>
        <div class="clear"></div>
        
        <form method="post" action="/admin/singlepage/add/" class="need_validation" id="commentForm" >
            <div id="tabs">
                <ul>
                    <li><a href="#tabs-1">基本资料</a></li>

                </ul>
                <!--START tabs-1 -->
                <div id="tabs-1">
                    <ul>
                        <li>
                            <label for="chr_title" class="lable_title">页面title<span class="req">*</span></label>
                            <input name="chr_title" id="chr_title" class="text medium required" type="text" value=""/>
                        </li>
                        <li>
                            <label for="chr_keywords" class="lable_title">页面keywords</label>
                            <input name="chr_keywords" id="chr_fieldname" class="text medium"  value=""/>
                        </li>

                        <li>
                            <label for="chr_description" class="lable_title">页面description</label>
                            <textarea id="chr_description" class="chr_description" style="width:700px;height:100px;" name="chr_description"></textarea>
                        </li>
                        <li id="chr_value">
                        </li>
                        <li>
                            <label for="chr_filename" class="lable_title">文件名<span class="req">*</span></label>
                            <input name="chr_filename" id="chr_filename" class="text medium required" type="text" value=""/>
                        </li>
                        <li>
                             <label for="chr_context" class="lable_title" style="margin-right:30px;">模板内容</label>
                            <textarea name="chr_context" id="chr_context" class="textarea" style="width:750px;height:300px;"></textarea>
                            </li>

                    </ul>
                    <div style="clear:both;"></div>
                </div>
                <!--END tabs-1 -->
            </div>
            <ul>
                <li style="text-align: center;">
                    <input value="保存" class="button" type="submit"/>
                </li>
            </ul>
        </form>
    </div>
</div>

